using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ACM.cmsarea08;
using ACM.cmsarea08.Administration;


namespace ACM.cmsarea08.Administration.Core {
	public partial class OptPageBase :  System.Web.UI.Page {
		public System.Resources.ResourceManager rm;
		override protected void OnInit(EventArgs e)
		{
			InitializeComponent();
			base.OnInit(e);
			if(Application["RM_ADM"]!=null)
    			rm = (System.Resources.ResourceManager) Application["RM_ADM"];
			
			string clang = ACM.cmsarea08.mainconfiguration.MainConf.LinguaPredefinita;
				if(ACM.cmsarea08.Users.CurrentUser.Autorizzato)
					clang = ACM.cmsarea08.Users.CurrentUser.PrefLanguage;
			if(System.Threading.Thread.CurrentThread.CurrentCulture.Name!= clang) {
  
	  		    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(clang);
 			    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(clang);
 		 	}
		}

		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);
		}
	
		private void Page_Load(object o , EventArgs e) {
			
		}
		
		
	}
	
}
